<script type="text/javascript" charset="utf-8">
var von="<?if ($_POST['zeitraum']=="vonbis") echo $_POST['von'] ; else echo $_POST['zeitraum'];?>";
var bis="<?if ($_POST['zeitraum']=="vonbis") echo $_POST['bis'] ; else echo date("Y-m-d H:i:s", strtotime('0 day'));?>";
		$(document).ready(function() {
		    $('#regen').dataTable( {
		    	"bJQueryUI": true,
				"sPaginationType": "full_numbers",
				"sSwfPath": "/DataTables-1.8.2/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
				//"bProcessing": true,
				"bServerSide": true,
		        
				 "sAjaxSource":"tabellen/regen_server_processing.php?zeit_von="+von+"&zeit_bis="+bis,
				 // "sDom": '<"H"lrT>t<"F"ip>',
			        "sDom": '<"H"lr<?php if($_SESSION['berechtiger_user']==1)echo 'T'?>>t<"F"ip>',
			        //"sDom": 'T<"clear">lfrtip',

			        "oLanguage": {
			        	"sZeroRecords":"es wurde kein Messdaten in DB gefunden",
				    	"sInfoFiltered":"",
			            "sLengthMenu": 'Display <select>'+
			              '<option value="10">10</option>'+
			              '<option value="100">100</option>'+
			              '<option value="1000">1000</option>'+
			              '<option value="10000">10000</option>'+
			             
			              
			             // '<option value="-1">All</option>'+
			              '</select> records'
			          },
			        
					"oTableTools": {
						"aButtons": [
							  
							 //"ajax",
							 {
			                        "sExtends": "csv",
			                        "sTitle": "Regen",
			                        "sPdfMessage": "Info",
			                        "sFileName": "<?php print('Regen.csv'); ?>.csv",
			                        "sPdfOrientation": "landscape",
			                        "sToolTip": "Save as CSV"
			                    },
							 {
			                        "sExtends": "pdf",
			                        "sTitle": "Regen",
			                        "sPdfMessage": "Info",
			                        "sFileName": "<?php print('Regen.pdf'); ?>.pdf",
			                        "sPdfOrientation": "landscape",
			                        "sToolTip": "Save as PDF"
			                    }

							
						]
						
					}

				    } );
		} );
		</script>
		<h1 align="center">Regen</h1>
		<table cellpadding="0" cellspacing="0" border="0" class="display" id="regen">
	<thead>
		<tr>
		

			<th>Regen-Zeit</th>
			<th>Regen</th>
			
		</tr>
	</thead>
	<tbody>
	
	<tr>
			<td colspan="5" class="dataTables_empty">Loading data from DB server</td>

		</tr>
	
		</tbody>
	<tfoot>
		<tr>
			
			<th>Regen-Zeit</th>
			<th>Regen</th>	
		</tr>
	</tfoot>
</table>

